package com.topgay.dao.board;

import java.util.HashMap;
import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;

import com.topgay.domain.CSCenter;
import com.topgay.util.BoardUtilities;

public class CSCenterDAOImple implements CSCenterDAO{

	private SqlSessionTemplate session;
	
	@Override
	public List<CSCenter> selectCSCenterList(int page, int devide) {
		HashMap map = new HashMap();
		map.put("contentPerPage", BoardUtilities.CONTENT_PER_PAGE);
		map.put("page", page);
		map.put("divide", devide);
		return session.selectList(makeSqlId("selectCSCenterList"), map);
	}

	private String makeSqlId(String id){
		return "cscenter." + id;
	}
	
}
